bea22a
@@ -312,7 +312,7 @@
public final class AdviceWithTasks {
     /**
      * Gets the outputs from the given parent.
      * <p/>
-     * This implementation deals with that outputs can be abstract and retrieves the correct non-nested output.
+     * This implementation deals with that outputs can be abstract and retrieves the <i>correct</i> parent output.
      *
      * @param parent the parent
      * @return <tt>null</tt> if no parent
@@ -323,12 +323,9 @@
public final class AdviceWithTasks {
             return null;
         }
         List<ProcessorDefinition> outputs = parent.getOutputs();
-        if (outputs.size() >= 1) {
-            // if the 1st output is abstract, then its onException,transacted,intercept etc so we should
-            // get the 'actual' outputs from that
-            if (outputs.get(0).isAbstract()) {
-                outputs = outputs.get(0).getOutputs();
-            }
+        if (outputs.size() == 1 && outputs.get(0).isAbstract()) {
+            // if the output is abstract then get its output, as
+            outputs = outputs.get(0).getOutputs();
         }
         return outputs;
     }
